# Copyright 2012 Brett Ponsler
# This file is part of siriviewer.
#
# siriviewer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# siriviewer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with siriviewer.  If not, see <http://www.gnu.org/licenses/>.
''' '''
from PyQt4 import QtGui

from siriviewer.objects import BaseObject

from pyamp.ui.qt import StyleSheet


class AssistantUtteranceView(BaseObject):

    def createElements(self):
        ''' '''
        widgets = []
        text = self.getProperty("text", "")
        spoken = self.getProperty("speakableText", "")

        self.__textLabel = QtGui.QLabel(text)
        self.__textLabel.setWordWrap(True)
        self.__textLabel.setMinimumHeight(30)

        styleSheet = StyleSheet(font_weight="bold")
        self.__textLabel.setStyleSheet(str(styleSheet))

        widgets.append(self.__textLabel)

        # if spoken != text:
        #     self.__label2 = QtGui.QLabel(spoken)
        #     widgets.append(self.__label2)

        return widgets
